package com.czf.mq.direct;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author zfChen
 * @create 2022/5/23 14:15
 */
@Component
//@RabbitListener(queues = "TestDirectQueue")
@Slf4j
public class DirectReceiverSecond {

    @RabbitHandler
    public void processSecond(Map testMessage){
        System.out.println("第二个DirectReceiver消费者收到消息  : " + testMessage.toString());
    }
}
